# coding=utf-8
"""
@author : leecrest
@time   : 2014/7/18 23:20
@brief  : 
"""


def Check(data, bNone):
	if bNone and data == "":
		return 0
	ret = int(data)
	if ret < 0 or ret >= 2**32:
		print "数据 %s 超出了 uint32 的范围" % data
		raise
	return ret
